package com.hawthorn.admin.service.syscalendar.impl;

import com.hawthorn.admin.repository.SysCalendarMapper;
import com.hawthorn.admin.service.syscalendar.SysCalendarService;
import com.hawthorn.platform.redis.RedisMyClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>todo 日历事项服务实现类 </p>
 * @author: andyten@tom.com | xukaixing@hotmail.com
 * @created: 2021/11/25 5:28 PM
 * @version v1.0.1
 * @copyright: Copyright (c)  andyten
 */
@Service
public class SysCalendarServiceImpl implements SysCalendarService
{
  @Resource
  private SysCalendarMapper sysCalendarMapper;
  @Autowired
  private RedisMyClient redisMyClient;

  /**
   * <p>todo 首页获取一周内系统消息提醒</p>
   * @param: userId
   * @return: java.util.List<java.util.Map < java.lang.String, java.lang.Object>>
   * @author: andy.ten@tom.com | xukaixing@hotmail.com
   * @date: 2021/12/12 12:46 PM
   * @version: 1.0.1
   * Modification History:
   * Date         Author          Version            Description
   * -----------------------------------------------------------
   * 2021/12/12    andy.ten        v1.0.1             init
   */
  @Override
  public List<Map<String, Object>> findCalendarEventList(String userAccount)
  {
    return sysCalendarMapper.findCalendarEventList(userAccount);
  }

}
